package com.settlement.system.mapper;

import com.settlement.system.model.entity.common.TblBalanceWatcher;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * RR-日记账-余额监控 Mapper 接口
 * @author Ximi
 * @since 2020-11-17
 */
public interface TblBalanceWatcherMapper extends BaseMapper {
    /**
     * 获取合计
     *
     * @param params 请求参数
     * @return
     */
    public TblBalanceWatcher getFoot(@Param("params") Map<String, Object> params);

    /**
     * selectTmAccountAmountCount
     * @param shopNo
     * @param startDate
     * @param endDate
     * @return
     */
    public Integer selectTmAccountAmountCount(@Param("shopNo") String shopNo,@Param("startDate") String startDate,@Param("endDate") String endDate);

    Integer selectDyAccountAmountCount(@Param("shopNo") String shopNo,@Param("startDate") String startDate,@Param("endDate") String endDate);

    /**
     * selectJdAccountAmountCount
     * @param shopNo
     * @param startDate
     * @param endDate
     * @return
     */
    public Integer selectJdAccountAmountCount(@Param("shopNo") String shopNo,@Param("startDate") String startDate,@Param("endDate") String endDate);

    /**
     * selectOrAccountAmountCount
     * @param loginAccount
     * @param startDate
     * @param endDate
     * @return
     */
    public Integer selectOrAccountAmountCount(@Param("shopAccount") String loginAccount,@Param("startDate") String startDate,@Param("endDate") String endDate);
}

